package model;

import java.util.Date;

public class Feedback {
	int feedbackId;
	String content;
	Employee owner;
	Employee target;
	Date dateMade;
	Category category = null;
	Section section;
	
	public Feedback() {}

	public Feedback(int feedbackId, String content, Employee owner,
			Employee target, Date dateMade, Category category, Section section) {
		super();
		this.feedbackId = feedbackId;
		this.content = content;
		this.owner = owner;
		this.target = target;
		this.dateMade = dateMade;
		this.category = category;
		this.section = section;
	}

	public int getFeedbackId() {
		return feedbackId;
	}

	public void setFeedbackId(int feedbackId) {
		this.feedbackId = feedbackId;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Employee getOwner() {
		return owner;
	}

	public void setOwner(Employee owner) {
		this.owner = owner;
	}

	public Employee getTarget() {
		return target;
	}

	public void setTarget(Employee target) {
		this.target = target;
	}

	public Date getDateMade() {
		return dateMade;
	}

	public void setDateMade(Date dateMade) {
		this.dateMade = dateMade;
	}

	public Category getCategory() {
		return category;
	}

	public void setCategory(Category category) {
		this.category = category;
	}

	public Section getSection() {
		return section;
	}

	public void setSection(Section section) {
		this.section = section;
	};
	
	
	public String toString() {
		StringBuilder str = new StringBuilder("");
		str.append(feedbackId).append("-").append(content).append("-").append(owner.getUsername()).append("-");
		str.append(target.getUsername()).append("-").append(dateMade.toString()).append("-").append(category.getCategoryName());
		str.append("-").append(section.getSectionName());
		
		return str.toString();
	}
}
